﻿@model DatNuocViet.Models.Comment

@{
    ViewBag.Title = "Chỉnh sửa comment";
}
<h2>Chỉnh sửa Comment</h2>
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    
    @using (Html.BeginForm()) {
        @Html.ValidationSummary(true)
        @Html.HiddenFor(model => model.CommentId)
        <div class="editor-label">
            Mô tả về khách hàng
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Author, new { style = "width:400px; margin: 10px 0 10px 0"})
            @Html.ValidationMessageFor(model => model.Author)
        </div>
        <div class="editor-label">
            Nội dung comment
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.CommentContent, new { style = "width:400px; margin: 10px 0 10px 0", rows = "15" })
            @Html.ValidationMessageFor(model => model.CommentContent)
        </div>
        <div class="editor-label">
            Xóa?
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.isDelete)
            @Html.ValidationMessageFor(model => model.isDelete)
        </div>
        <p>
            <input type="submit" value="Chỉnh sửa" />
        </p>
    }
<div>
    @Html.ActionLink("Back to List", "Trian", "AdminHome")
</div>
